package com.test;

import com.xianzhi.web.AdminAction;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        AdminAction action = (AdminAction) context.getBean("adminAction");
        action.execute();

    }
}
